function pics(img,ref) {

	document.images[img].src = ref;

}



function IEPngFix( pngimg, gifimg, width, height, unique_name )

{

//	var code = '<IMG SRC="'+ pngimg +'" WIDTH="' + width + '" HEIGHT="' + height + '" BORDER=0 name='+ unique_name +'>';

	var code = '<IMG SRC="'+ gifimg +'" WIDTH="' + width + '" HEIGHT="' + height + '" BORDER=0 name='+ unique_name +' STYLE="BACKGROUND:url('+pngimg+') no-repeat 0px 0px;">';

	if( navigator.userAgent.indexOf("Opera") > 1 )

		document.write(code);

	else

		if( navigator.userAgent.indexOf("MSIE 6") > 1 )

			document.write('<IMG SRC="'+gifimg+'" WIDTH="' + width + '" HEIGHT="' + height + '" BORDER="0" ALT="" STYLE="filter: progid:DXImageTransform.Microsoft.AlphaImageLoader (src=' + pngimg + ' , sizingMethod=scale );">');

		else

			if(navigator.userAgent.indexOf("MSIE 5") != -1)

				document.write(code);

			else

				document.write(code);

				

}

	function show(id)
	{
		document.all(id).style.display='block';
	}
	function hide(id)
	{
		document.all(id).style.display='none';
	}


function MM_preloadImages() {

 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} }
function openwindow(url,name,properties)
{
	var ContextWindow = window.open(url,name,properties);
	ContextWindow.opener = this;
	ContextWindow.focus();
}

function checkform (t) {
  if (document.all["os_search"].value == "") {
    alert(t);
    document.all["os_search"].focus();
 }
 else os_search.submit(); }




isDOM=document.getElementById //DOM1 browser (MSIE 5+, Netscape 6, Opera 5+)
isMSIE=document.all && document.all.item //Microsoft Internet Explorer 4+
isNetscape4=document.layers //Netscape 4.*
isOpera=window.opera //Opera
isOpera5=isOpera && isDOM //Opera 5+
isMSIE5=isDOM && isMSIE && !isOpera //MSIE 5+
isMozilla=isNetscape6=isDOM && !isMSIE && !isOpera


function getLayer(layerName, parentLayerName){
  if(isDOM){ return document.getElementById(layerName); }
  if(isMSIE){ return document.all[layerName]; }
  if(isNetscape4){ return eval('document.layers[layerName]'); }
  return false;
}

function ts(e,what,offset){
  mousex = e.clientX;
  mousey = e.clientY;
  pagexoff = 0;
  pageyoff = 0;
  if(isMSIE5){
    pagexoff = document.body.scrollLeft;
    pageyoff = document.body.scrollTop;
  }
  else{
    pagexoff = window.pageXOffset;
     pageyoff = window.pageYOffset;
  }
  if(getLayer(what)){
    if(isNetscape4)
      obj = getLayer(what);
    else
      obj = getLayer(what).style;
 	
  	if(obj){
	    leftoff = mousex-pagexoff;
    	obj.left = (mousex+pagexoff) - offset;
  /*  sdec' */
    	
	    topoff = mousey-pageyoff;
    	if(isOpera && topoff <= 30)
    	  obj.top = mousey + 20;
	    else 
		if( mousey <= 30) 
	        obj.top = (mousey+pageyoff) + 20;
		else 
	      if (isOpera) 
    	    obj.top = mousey + 20;
	    else
    	  obj.top = (mousey+pageyoff) + 20;
   		
		
	    if(isNetscape4)
    	  obj.visibility = 'show';
	    else
    	  obj.visibility = 'visible';
	  }
   }
  return true;
}

function tc(){
  if(obj){
    if(isNetscape4)
      obj.visibility = 'hide';
    else
      obj.visibility='hidden';
  }
  return true
}

